﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace XKPlatform.DataModels.ParamsModel
{
    public class BaseParams
    {
        [Required(ErrorMessage = "开始时间不能为空")]
        [Display(Name = "开始日期")]
        [DataType(DataType.Date, ErrorMessage = "数据类型不正确")]
        [Range(typeof(DateTime), "2018-01-01", "2080-12-31", ErrorMessage = "超出时间范围")]

        public DateTime startDate { get; set; }

        [Required(ErrorMessage = "结束时间不能为空")]
        [Display(Name = "结束日期")]
        [DataType(DataType.Date,ErrorMessage ="数据类型不正确")]
        [Range(typeof(DateTime), "2018-01-01", "2080-12-31", ErrorMessage = "超出时间范围")]

        public DateTime  endDate { get; set; }

        

    }
}
